﻿using EFCore;
using IConfiguration;
using IEFContext;
using System;

namespace EFContext {
  public class EFContext : IEFContext.IEFContext {
    IConfiguration.IConfiguration _configuration;
    public EFContext(IConfiguration.IConfiguration configuration) {
      _configuration = configuration;
    }
    public EFCoreContext CreateBDContext() {
      return new EFCoreContext(_configuration.Read("DbConnectStr"));
    }
  }
}
